import './index.scss'
import { createRoot } from 'react-dom/client'
import { locale, loadMessages } from "devextreme/localization"
import config from 'devextreme/core/config';
import { licenseKey } from './Config'
import { Dev_zh } from './Config/Dev_zh'

import { scan } from 'react-scan';
import App from './Router'

if (typeof window !== 'undefined') scan({ enabled: false, log: true })

config({ licenseKey })
loadMessages({ zh: Dev_zh })
locale('zh')

createRoot(document.getElementById('root')).render(<App />)